package com.jet.goods.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.jet.core.interceptor.JsonbTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2025-03-04
 */
@Getter
@Setter
@TableName(value = "m_goods_spu", autoResultMap = true)
@ApiModel(value = "GoodsSpu对象", description = "")
public class GoodsSpu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.INPUT)
    private String id;

    private Long merchantNo;

    private String categoryId;

    private String spuCode;

    private String spuNo;

    private String name;

    private String unitId;

    private String remark;

    @TableField(fill = FieldFill.INSERT)
    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(typeHandler = JsonbTypeHandler.class)
    private List<String> pictures;

    private Integer deleted;

    @ApiModelProperty("是否可计次核销(0:不可计次，2：可计次核销)")
    private Integer countedType;
}
